<%@ page language="java" import="java.util.*" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
request.setCharacterEncoding("utf-8");
response.setCharacterEncoding("utf-8");
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8" />
	<meta name="author" content="Luka Cvrk - www.solucija.com" />
	<meta name="description" content="Site Description" />
	<meta name="keywords" content="site, keywords" />
	<meta name="robots" content="index, follow" />
	<link rel="stylesheet" type="text/css" media="screen" href="css/style.css" />
	<title>welcome</title>

	<script src="${pageContext.request.contextPath}/js/script.js" type="text/javascript"></script>
  </head>
  
  <body onload="createCode()">
	<div class="back">
		<div id="search">
			<form action="">
				<fieldset>
					<input type="text" class="field" value="" placeholder="搜索"/>
					<input type="submit" class="button" value="" />
				</fieldset>
			</form>
		</div>
		<ul id="menu">
			<li><a href="welcome.jsp"><font face="Microsoft YaHei">首页</font></a></li>
			<li><a  class="current" href="login.jsp"><font face="Microsoft YaHei">登录</font></a></li>
			<li><a href="register.jsp"><font face="Microsoft YaHei">注册</font></a></li>
			<li><a href="about.jsp"><font face="Microsoft YaHei">关于</font></a></li>
			<li><a href="photowall.jsp"><font face="Microsoft YaHei">照片墙</font></a></li>
			<li><a href="personal.jsp"><font face="Microsoft YaHei">个人中心</font></a></li>
		</ul>

		<form onsubmit="return validateCodeLogin();" method="post" action="${pageContext.request.contextPath}/login.action">
		<div class="in">
		
		<%
		String wrong = (String) session.getAttribute("wrong");
		if(wrong != null) {
			out.println("<font color=\"red\" size=\"1\" face=\"Microsoft YaHei\">用户名或密码不正确，再试试吧！</font>");
			session.removeAttribute("wrong");
		}
		 %>
		
		<input style="background-color:transparent;width:200px;height:30px;color:black;font-family:Microsoft YaHei;font-size:20px;"; id="username"border: 0; type="text" name="username"  autocomplete="off" placeholder="用户名(3-10位)" /><br/><br/>
		<input style="background-color:transparent;width:200px;height:30px;color:black;font-family:Microsoft YaHei;font-size:20px;""; id="password"border: 0; type="password" name="password" autocomplete="off" placeholder="密码(6-12位)"/><br/><br/>
		<input style="background-color:transparent;width:200px;height:30px;color:black;font-family:Microsoft YaHei;font-size:20px;""; id="inputCode"; border: 0; type="text" name="verification" autocomplete="off" placeholder="验证码"/><br/><br/>
		
		<div class="code" id="checkCode" onclick="createCode()" ></div><br/><br/><br/><br/>
		
		<input style="background-color:transparent;font-size:20px;font-family:Microsoft YaHei; color:black;width:200px; height:30px;" type="submit" name="submitform" value="寻找属于我们的记忆"/>
		
		</div>
		</form>
	</div>
	

	<div id="promo">
		<div class="wrap">
		<!--
			<div class="col">
				<img id="featured" src="images/featured.gif" alt="Featured Image" />
			</div>
	     -->
			
			<div id="footer">
				 <p><a href="#" target="_blank">关于</a>|免责声明：部分素材来自互联网，如有侵权请告知。|欢迎交流：850885154@qq.com</p>
				<p>Copyright &copy; 2015 &minus; 王旭 &minus; Design: &minus; <a href="http://www.cnblogs.com/wxisme/" target="_blank">wxisme</a></p>
			</div>
		</div>
	</div>
    
</body>
</html>
